package org.example.erat.service;

import org.example.erat.dto.StudentDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 学生服务接口
 */
public interface StudentService {


    StudentDTO createStudent(StudentDTO studentDTO);

    StudentDTO updateStudent(Long id, StudentDTO studentDTO);

    void deleteStudent(Long id);

    StudentDTO getStudent(Long id);

    List<StudentDTO> getAllStudents();

    List<StudentDTO> getStudentsByClass(Long classId);

    List<StudentDTO> importStudentsFromExcel(Long classId, MultipartFile file);
}
